﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="User" Object="User" InnerID="Request.QueryString['ID']" Validate="True" />
<section data-page="user_edit" data-title="编辑用户" data-lang="<%=ContentLang%>" data-sex="<%=User[Sex]%>" data-id="<%=User[InnerID]%>" data-guid="<%=User[ID]%>">
	<dl class="path1">
		<dt><span>您的位置：</span>：</span><a href="list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">用户列表</a> → <b class="<%=ContentLang%>Font"><%=User[Name]%></b></dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Mark="System" Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li class="ali-active"><a>编辑</a></li>
						</ul>
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel">
						<table class="post-table margin2">
							<tr>
								<th width="120">用户名：</th>
								<td><%=User[Name]%></td>
							</tr>
							<tr>
								<th>密码：</th>
								<td><input type="password" data-name="Password" maxlength="30" class="ali-input CHSFont">若不修改，则留空</td>
							</tr>
							<tr>
								<th>手机号码：</th>
								<td>
									<input type="text" name="Mobile" value="<%=User[Mobile]%>" data-old="<%=User[Mobile]%>" size="20" maxlength="20"  class="ali-input CHSFont"><strong style="color:#F00"></strong>
									<label><input type="checkbox" name="IsMobileValidated"<%If Convert.ToBoolean(User[IsMobileValidated])%> checked<%EndIf%>>是否验证？</label>
								</td>
							</tr>
							<tr>
								<th>微信公众号OpenID：</th>
								<td><input type="text" name="WxppOpenID" value="<%=User[WxppOpenID]%>" size="50" maxlength="50" class="ali-input CHSFont"><strong style="color:#F00"></strong></td>
							</tr>
							<tr>
								<th>微信小程序OpenID：</th>
								<td><input type="text" name="WxmpOpenID" value="<%=User[WxmpOpenID]%>" size="50" maxlength="50" class="ali-input CHSFont"><strong style="color:#F00"></strong></td>
							</tr>
							<tr>
								<th>微信UnionID：</th>
								<td><input type="text" name="WxUnionID" value="<%=User[WxUnionID]%>" size="50" maxlength="50" class="ali-input CHSFont"><strong style="color:#F00"></strong></td>
							</tr>
							<tr>
								<th>昵称：</th>
								<td><input type="text" name="Nickname" value="<%=User[Nickname]%>" size="50" maxlength="50" class="ali-input CHSFont"></td>
							</tr>
							<tr>
								<th>真实姓名：</th>
								<td><input type="text" name="RealName" value="<%=User[RealName]%>" size="50" maxlength="50" class="ali-input <%=ContentLang%>Font"></td>
							</tr>
							<tr>
								<th>性别：</th>
								<td>
									<select name="Sex" data-ali-widget="combo">
										<option value="">未指定</option>
										<option value="0">女</option>
										<option value="1">男</option>
									</select>
								</td>
							</tr>
							<tr>
								<th>头像：</th>
								<td><input type="text" name="Head" value="<%=User[Head]%>" size="60" class="ali-input CHSFont"><a class="ali-button ali-uploader">浏览...</a></td>
							</tr>
							<tr>
								<th>简介：</th>
								<td><textarea name="Profile" cols="60" rows="10" class="ali-input <%=ContentLang%>Font"><%=HttpUtility.HtmlEncode(User[Profile].ToString())%></textarea></td>
							</tr>
							<tr>
								<th>注册日期：</th>
								<td><%=User[CreateTime]%></td>
							</tr>
							<tr>
								<th>创建人：</th>
								<td><%=User[CreatorName]%></td>
							</tr>
							<tr>
								<th>指标：</th>
								<td>
									最后登录时间：<%=User[LastLoginTime]%><br>
									最后登录IP：<%=User[LastLoginIP]%><br>
									登陆次数：<%=User[LoginTimes]%><br>
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button><input type="hidden" name="PictureAllowedType" value="gif|jpg|jpeg|png|bmp|png"></div>
	</form>
</section>